﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Vector2Util : ValueUtilBase
{
    public override object DefaultValue => default(Vector2);

    public override string TypeName => "Vector2";

    public override Type ValueType => typeof(Vector2);
    public override bool CompareEqual(object a, object b)
    {
        CheckValueType(a);
        CheckValueType(b);
        Vector2 aa =(Vector2) a, bb =(Vector2) b;
        return ValueUtil.Get<float>().CompareEqual(aa.x, bb.x) && ValueUtil.Get<float>().CompareEqual(aa.y, bb.y);
    }
}